﻿using System.Collections.Generic;
using System.Data;
using DataLogical.TableClass;
using DBModule;

namespace DataLogical
{
    public class User : tblUser
    {
        public static int GetUSER_ID(string _userName)
        {
            string strSQL = string.Format("SELECT ID FROM tblUser WHERE UserName = '{0}'", _userName);
            SqlModule db = CommonVar.s_SqlModule;
            object o = db.QueryScalar(strSQL);
            return int.Parse(o.ToString());
        }
    }
}
